Lab 1 & 2

Javier Mtz.-Rdz.

Classroom distribution

Hi! I will be your TA for this term 🙋🏽‍♂️

  • My name: Javier Martínez.
  • First-year master’s student.
  • I’m studying stats.
  • I hope to assist you as much as possible to successfully complete the labs.

Lab structure

  • Duration: 2 hours.
    • We will take a break midway.
  • Two separate lab sessions.
  • Make sure to review the pre-reading material on the website.
  • You have been assigned to a group for all lab assignments.

Lab structure

  • Each team will receive two exercise sheets and one handout sheet.
  • Discuss every question with your teammates.
  • Ask!

Lab 1

Lab topics:

R review

R Advantages:

  • Open-Source.
  • An Active Community.
  • Support for statistical programming is excellent.
  • Easy data wrangling.

Lab 1

Before Starting:

  • Ensure R is working properly on your computer.
  • I recommend RStudio, an IDE with several advantages:
    • Simple process for writing R code
    • Ability to inspect variables
    • Visualization of generated plots
    • Additional useful features

Lab 1

Hints and advises:

  • The required functions can be found in the pre-reading material.

    When you need to view the required arguments for a function, you can do so by typing ?function.

  • How to access a dataset’s variable?

    dataset$variable

Lab 2

Lab topic:

Probability and Random Variables

Hints and Tips:

  • \(P(\text{at least x times something happens})\) can be broken down into all possible scenarios.

  • Q2: The reliability of the chain is the probability that the chain works.

    It’s recommended to start by dividing the chain into two sections.